package jiChengHeDuoTai.jiChengHeDuoTai2.demo2;

class Base{
    public int a=1;
    public int b=2;

    public void testBase(){
        System.out.println("testBase()......");
    }
    public void testA(){
        System.out.println("testA()......");
    }
}

class Derived extends Base{
    public int c=3;
    public int a=1111;

    public void testDerived(){
        System.out.println("testDerived()......");
    }

    public void testA(){
        System.out.println("testA() Derived......");
    }

    public void test(){
        testA();
        super.testA();
    }

    public void test1(){
        System.out.println(this.a);
        System.out.println(super.a);
        System.out.println(b);
        System.out.println(c);
    }
}

class A extends Derived{

}

public class Test {
    public static void main(String[] args) {
        Derived derived=new Derived();
        derived.test();
    }
}
